<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>role</title>
<#include "/common/lib/layui-lib.html"/>
</head>
<body>
	<form class="layui-form" action="javascript:;">
		<fieldset class="layui-elem-field" style="padding: 5px;">
			<legend>查询</legend>
			<div class="layui-form-item">
				<div class="layui-inline">
					
					
							<label class="layui-form-label">角色名</label>
							<div class="layui-input-inline">
								<input type="text" id="roleName" name="roleName" class="layui-input">
							</div>
					
					
				</div>
				<button id="searchButton" class="layui-btn layui-search-button layui-btn-normal"
					data-type="reload" lay-filter="searchbtn">查询</button>
			</div>
		</fieldset>
	</form>
	<div class="layui-btn-group" style="margin-left: 5px;">
		<button id="addUser" class="layui-btn layui-btn-normal">新增</button>
		<button id="refresh" class="layui-btn layui-btn-normal">刷新</button>
	</div>
	<table id="user-table"></table>
	<script type="text/html" id="optbar">
  		<a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit">编辑</a>
  		<a class="layui-btn layui-btn-normal layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
	</script>
	<script id="formftl" type="text/html">
		<form id="myform" class="layui-form layui-form-border" action="">
			<!--隐藏表单字段区-->
			<input type="hidden" id="optname" name="optname">
			<input type="hidden" id="win-roleId" name="roleId">
			<!--显示表单字段区-->
			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">角色编码</label>
					<div class="layui-input-block">
						<input type="text" id="win-roleCode" name="roleCode" lay-verify="required" autocomplete="off" placeholder="请输入角色编码" class="layui-input">
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label">角色名</label>
					<div class="layui-input-block">
						<input type="text" id="win-roleName" name="roleName" lay-verify="required" autocomplete="off" placeholder="请输入角色名" class="layui-input">
					</div>
				</div>
			</div>
			<button id="mybutton" lay-submit lay-filter="mybutton"/>
		</form>
    </script>
	<script src="/js/app/role/role-table.js" type="text/javascript"></script>
</body>
</html>